package core1.ch03lang;

import java.util.HashMap;
import java.util.Map;

class A {
	private Map map=new HashMap();

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}
}

public class Test {
	
	public static void main(String[] args) {
		A a =new A();
		Map b = a.getMap();
		
		b.put("hello", "SB");
		b.put("haha", "haha");
		
		System.out.println("hello :"+a.getMap().get("hello"));
		System.out.println("haha :"+a.getMap().get("haha"));
	}
	
}
	
	